<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'vision.label', default: 'Vision')}" />
    <title><g:message code="default.list.label" args="[entityName]" /></title>
  </head>
  <body>
    <h1><g:message code="default.list.label" args="[entityName]" /></h1>
    <table id="instanceList">
      <thead>
        <tr>
          <th><g:message code="vision.id.label" default="Id" /></th>
          <th><g:message code="vision.name.label" default="Name" /></th>
          <th><g:message code="vision.purpose.label" default="Purpose" /></th>
          <th><g:message code="vision.dateCreated.label" default="Date Created" /></th>
          <th><g:message code="vision.lastUpdated.label" default="Last Updated" /></th>
        </tr>
      </thead>
      <tbody>
        <g:each in="${visionInstanceList}" status="i" var="instance">
          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
              <td>${fieldValue(bean:instance, field:"id")}</td>
              <td>${fieldValue(bean:instance, field:"name")}</td>
              <td>${fieldValue(bean:instance, field:"purpose")}</td>
              <td>
                <g:formatDate format="yyyy-MM-dd HH:mm:ss z"
                              date="${fieldValue(bean:instance, field:"dateCreated")}"/>
              </td>
              <td>
                <g:formatDate format="yyyy-MM-dd HH:mm:ss z"
                              date="${fieldValue(bean:instance, field:"lastUpdated")}" />
              </td>
          </tr>
        </g:each>
      </tbody>
      <tfoot></tfoot>
    </table>
  </body>
</html>